package com.itheima.FileTest;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

public class CopyFiles {
    public static void main(String[] args) throws IOException {
        FileInputStream fis = new FileInputStream("D:\\传智黑马javaEE开发习题答案\\练习\\Demo7.java");
        FileOutputStream fos = new FileOutputStream("D:\\传智黑马javaEE开发习题答案\\练习2\\Demo7.java");

        int b;
        while ((b = fis.read()) != -1){
            fos.write(b);

        }

        fis.close();
        fos.close();
    }
}
